<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Order extends Model
{
    protected $guarded = ['id'];
   

    private $statusTxt = [
        
        '1' => ['user'=>'待付款','style'=>'primary'],
    	
        '100' => ['user'=>'已完成','style'=>'success'], 
    	
    ];
   
    public function car()
    {
        return $this->belongsTo(Car::class);
    }

    public function user()
    {
    	return $this->belongsTo(User::class);
    }

    

}
